<template>
	<view class="ordercontent">
		<view class="nav_bar" style="background-color: rgba(255, 255, 255, 1);">
			<uni-nav-bar color="#333" left-icon="left"
				:right-icon="order.status == 5 && order.complain_status == 1 ? 'more-filled' : ''" title="订单详情"
				:border='false' :fixed="true" background-color="transparent" @clickLeft="$util.back()"
				@clickRight="onclickRight"></uni-nav-bar>
		</view>

		<view class="nav_box"></view>

		<view class="storeName flex_center" @click="$native.toStore(order.store_id)">
			<text>{{order.store_name || ''}}</text>
			<u-icon name="arrow-right" color="#CCCCCC" size="16"></u-icon>
		</view>

		<view class="product flex_center"
			@click="$util.toUrl(`/pages/create/product?goods_id=${order.goods_id}&from_web=1&provider_id=${order.kefu == 1 ? order.provider_id : 0}`)">
			<image v-if="order.goods_image" :src="order.goods_image[0]" mode="aspectFill"></image>
			<view class="name hidden">
				<text>{{order.name || ''}}</text>
				<view>
					<i>￥</i>{{order.price}}
				</view>
			</view>
		</view>

		<!-- 非按摩 -->
		<view class="order_content_text flex_r_between">
			<text>商品原价</text>
			<view class="price">
				<view><i>￥</i>{{order.price || '0'}}</view>
			</view>
		</view>

		<view class="order_content_text flex_r_between" v-if="order.status != 1">
			<text>VIP优惠立减</text>
			<view class="price">
				<view><i>￥</i>{{order.vip_discount_price || '0'}}</view>
			</view>
		</view>

		<view class="order_content_text flex_r_between" v-if="order.status != 1">
			<text>实付款</text>
			<view class="price">
				<view><i>￥</i>{{order.pay_price || '0'}}</view>
			</view>
		</view>



		<view class="order_content_text flex_r_between" v-if="order.subscribe_time">
			<text>预约时间</text>
			<view class="price">
				<view>{{order.subscribe_time || '-'}}</view>
			</view>
		</view>

		<!-- 购物卡 -->
		<!-- <view class="order_content_text flex_r_between" v-if="order.status != 1">
			<text>购物卡消费</text>
			<view class="price">
				<view><i>￥</i>{{order.card_price || '0.00'}}</view>
			</view>
		</view> -->

		<!-- <view class="order_content_text flex_r_between"
			v-if="order.kefu == 1 && (order.status == 5 || order.status == 6) ">
			<text>路费</text>
			<view class="price">
				<view><i>￥</i> {{ order.fare_price }}</view>
			</view>
		</view> -->

		<!-- 2477 [创建订单]非按摩订单，商家接单后显示了客服，且收货时间不对 -->
		<!-- <view class="order_content_text flex_r_between" v-if="order.kefu == 1">
			<text>服务人员</text>
			<view class="kefu hidden">{{order.provider_nickname || '-'}}</view>
		</view> -->

		<view class="line"></view>

		<view class="order_content_text flex_r_between">
			<text>收货人：</text>
			<view class="hidden">{{order.real_name || ''}}</view>
		</view>

		<view class="order_content_text flex_r_between">
			<text>联系方式：</text>
			<view class="hidden">{{order.mobile || ''}}</view>
		</view>

		<view class="order_content_text flex_r_between">
			<text>收货地址：</text>
			<view>{{order.city || ''}}{{order.area || ''}}{{order.address || ''}}</view>
		</view>

		<view class="line"></view>

		<view class="order_content_text flex_r_between">
			<text>下单时间：</text>
			<view class="hidden">
				<uni-dateformat :date="order.create_time" format="yyyy-MM-dd hh:mm:ss"></uni-dateformat>
			</view>
		</view>

		<view class="order_content_text flex_r_between">
			<text>付款时间：</text>
			<view class="hidden" v-if="order.pay_time">
				<uni-dateformat :date="order.pay_time" format="yyyy-MM-dd hh:mm:ss"></uni-dateformat>
			</view>
			<view class="hidden" v-else>
				-
			</view>
		</view>

		<!-- 2477 [创建订单]非按摩订单，商家接单后显示了客服，且收货时间不对 -->
		<view class="order_content_text flex_r_between">
			<text>收货时间：</text>
			<view class="hidden" v-if="order.finish_time">
				<uni-dateformat :date="order.finish_time" format="yyyy-MM-dd hh:mm:ss"></uni-dateformat>
			</view>
			<view class="hidden" v-else>
				-
			</view>
		</view>

		<view class="order_content_text flex_r_between">
			<text>快递单号：</text>
			<view class="hidden tracking_number" @click="onCopy(order.tracking_number)">
				<u-icon name="file-text" size="32rpx" v-if="order.tracking_number"></u-icon>
				<text>{{order.tracking_number || '-'}}</text>
			</view>
		</view>

		<view class="order_content_text flex_r_between">
			<text>订单编号：</text>
			<view class="hidden">
				{{order.order_sn || '-'}}
			</view>
		</view>

		<!-- use_card=1:余额全款，2：余额+微信，3：余额+支付宝，4=微信，5=支付宝 -->
		<view class="order_content_text flex_r_between">
			<text>支付方式：</text>
			<view class="hidden">
				{{
					order.use_card == 1 ? '余额支付'
					:order.use_card == 2 ? '组合支付(余额+微信)'
					:order.use_card == 3 ? '组合支付(余额+支付宝)'
					:order.use_card == 4 ? '微信支付'
					:order.use_card == 5 ? '支付宝支付'
					: ''
				}}
			</view>
		</view>

		<!-- use_card=1:余额全款，2：余额+微信，3：余额+支付宝，4=微信，5=支付宝 -->
		<view class="order_content_text flex_r_between">
			<text>退款状态：</text>
			<!-- return_status 1=未退款  2=申请中  3=已退款  4=驳回退款,5=商家同意退款 -->
			<view class="hidden">
				{{
					order.return_status == 1 ? '-'
					:order.return_status == 2 ? '申请中'
					:order.return_status == 3 ? '已退款'
					:order.return_status == 4 ? '驳回退款'
					:order.return_status == 5 ? '商家已同意'
					: ''
				}}
			</view>
		</view>

		<view class="order_content_text flex_r_between">
			<text>备注：</text>
			<view>
				{{order.remark || '-'}}
			</view>
		</view>

		<view class="line" v-if="order.complain_status == 2 || order.complain_status == 3"></view>

		<!-- 投诉 -->
		<view class="complant" v-if="order.complain_status == 2 || order.complain_status == 3">
			<view class="complant_title">投诉内容</view>
			<view class="complant_content">{{order.complain_info.content || ''}}</view>
			<image @click="previewImage" v-if="order.complain_info.images" :src="order.complain_info.images"
				mode="aspectFill"></image>
			<view class="complant_return" v-if="order.complain_info.check_content">
				处理结果:{{order.complain_info.check_content}}</view>
		</view>

		<view class="btn_box flex_center" v-if="order.status == 1">
			<view class="btn r" @click="onPay">立即购买</view>
			<!-- 非服务 -->
			<view class="text" v-if="vip_status == 0 || circle_info.type != 3">
				需要支付: <text><i>￥</i>{{ order.price }}</text>
			</view>
			<view class="text" v-else>
				需要支付: <text><i>￥</i>{{ (order.price * goods_discount).toFixed(2) }}</text>
			</view>
		</view>

		<view class="btn_box flex_center" v-if="order.status == 2">
			<view class="btn b" @click="closeOrder">取消订单</view>
		</view>

		<view class="btn_box flex_center" v-if="order.status == 3">
			<view class="btn b" v-if="order.return_status == 1 || order.return_status == 4" @click="onReturn">申请退款
			</view>
			<view class="btn r"
				v-if="(order.return_status == 1 || order.return_status == 4 || order.return_status == 2) && order.kefu == 1"
				@click="complateOrder">
				完成订单</view>
		</view>

		<view class="btn_box flex_center" v-if="order.status == 4">
			<!-- <view class="btn b" v-if="order.return_status == 1 || order.return_status == 4" @click="onReturn">申请退款 -->
			<!-- </view> -->
			<view class="btn r" v-if="order.return_status == 1 || order.return_status == 4 || order.return_status == 2"
				@click="complateOrder">
				{{ order.kefu == 1 ? '完成订单' : '确认收货' }}
			</view>
		</view>

		<view class="btn_box flex_center" v-if="order.status == 5">
			<view class="btn r" @click="buyAgain">再次预定</view>
			<!-- <view class="btn b" v-if="order.complain_status == 1" @click="toComplate">
				投诉举报
			</view> -->
		</view>

		<u-popup mode="bottom" :safeAreaInsetBottom="false" :show="to_pay_show" @close="to_pay_show = false"
			bgColor="transparent">
			<view class="to_pay_show flex_c">
				<view class="title">支付</view>
				<view class="price flex_center" style="align-items: flex-start;">
					<i>￥</i>
					<view class="flex_c" v-if="vip_status == 1 && circle_info.type == 3">
						<text>{{ (order.service_price * goods_discount).toFixed(2) }}</text>
						<text
							style="font-size: 28rpx;color: #FD2A53;margin-top: 12rpx;">VIP优惠:{{ (order.service_price * (1-goods_discount)).toFixed(2) }}</text>
					</view>
					<text v-else>{{ order.service_price }}</text>
				</view>
				<view class="pay_type">

					<view class="item flex_r_between" @click="pay_type = 1">
						<view class="left flex_center">
							<image src="/static/public/wechat.png"></image>
							<text>微信</text>
						</view>

						<view class="right flex_center">
							<text></text>
							<image :src="`/static/public/select${pay_type == 1 ? '_s' : ''}.png`"></image>
						</view>
					</view>

					<view class="item flex_r_between" @click="pay_type = 2">
						<view class="left flex_center">
							<image src="/static/public/alipay.png"></image>
							<text>支付宝</text>
						</view>

						<view class="right flex_center">
							<text></text>
							<image :src="`/static/public/select${pay_type == 2 ? '_s' : ''}.png`"></image>
						</view>
					</view>


				</view>
				<view class="btn" @click="toPay">确认支付</view>
			</view>
		</u-popup>

		<u-popup :safeAreaInsetBottom="false" :show="return_show" mode="center" @close="return_show = false"
			bgColor="transparent">
			<view class="return_popup">
				<view class="icon flex_r_around">
					<image :src="$util.prefix('store/money_icon.png')"></image>
				</view>

				<view class="content flex_c">

					<view class="title">
						特别注意
					</view>

					<view class="text">
						{{ return_msg }}
					</view>

					<view class="return_popup_btn flex_r_between">
						<view class="b" @click="returnOrder">
							继续申请
						</view>
						<view class="r" @click="return_show = false">
							取消
						</view>
					</view>
				</view>

			</view>
		</u-popup>

		<u-popup :safeAreaInsetBottom="false" :show="pay_show" mode="center" @close="pay_show = false"
			bgColor="transparent">
			<view class="pay_popup">
				<view class="icon flex_r_around">
					<image :src="$util.prefix('store/money_icon.png')"></image>
				</view>

				<view class="content flex_c">
					<view class="header" @click="pay_show = false">
						<u-icon name="close-circle" size="40rpx" color="#666"></u-icon>
					</view>

					<view class="title">
						项目总额
					</view>

					<view class="price flex_r_between">
						<view class="item flex_c">
							<text>订单总额</text>
							<view>￥{{ order.service_price || '' }}</view>
						</view>
						<!-- <view class="item flex_c">
							<text>定金</text>
							<view>￥50</view>
						</view> -->
						<view class="item flex_c">
							<text>路费</text>
							<input type="digit" v-model="fare" @input="inputVerGame" placeholder="请输入"
								placeholder-class="input-placeholder"></input>
						</view>
					</view>

					<view class="pay_popup_btn flex_c" @click="toPayComplateOrder">
						<text>共需支付{{
							 Number(fare).toFixed(2) || 0
						}}元</text>
						<view>路费</view>
					</view>
				</view>

			</view>
		</u-popup>

		<u-action-sheet :actions="apply_menu" :closeOnClickOverlay="true" :closeOnClickAction="true" :show="show_apply"
			cancelText="取消" @close="show_apply = false" @select="toComplate"></u-action-sheet>

	</view>
</template>

<script>
	import navBar from '@//compentents/navBar/navBar.vue';
	export default {
		components: {
			navBar,
		},
		data() {
			return {
				order_id: 0,

				order: {},

				to_pay_show: false,
				pay_type: 1,
				flag: true,

				// 退款订单
				return_show: false,
				return_msg: '',

				pay_show: false,
				fare: '',

				apply_menu: [{
					name: '投诉举报',
					type: 1,
				}],

				show_apply: false,

				vip_status: 0,

				circle_info: {},

				goods_discount: 0,

			}
		},
		methods: {

			onclickRight() {
				if (this.order.status == 5 && this.order.complain_status == 1) {
					this.show_apply = true;
				}
			},

			getDetail() {
				this.$get('/order/getOrderInfo', {
					order_id: this.order_id
				}).then(res => {
					this.order = res.data;
					if(this.order.circle_type == 2){
						this.$get('/circle.circle_vip/getAnmoVipConfig', {
							circle_id: this.order.circle_id
						}).then(res => {
							this.vip_status = 0;
							var is_vip = res.data.member_info.is_vip || 0;
							var config_type = res.data.member_info.config_type || 0;
							this.circle_info = res.data.circle_info;
							this.goods_discount = res.data.goods_discount / 100;
						
							if (is_vip == 1) {
								// if (['vip_year_price', 'vip_forever_price'].includes(config_type)) {
								this.vip_status = 1;
								// }
							}
						});
					}
				})
			},

			previewImage() {
				uni.previewImage({
					current: 0,
					urls: [this.order.complain_info.images],
				})

			},

			makeCall() {
				this.$native.makeCall(this.order.mobile);
			},

			// 支付相关
			onPay() {
				this.to_pay_show = true;
			},

			toPay() {
				if (!this.flag) {
					return;
				}
				this.flag = false;

				// if (this.order.kefu == 1) {
				// 	this.buyAnmo(this.order.id);
				// } else {
				this.buyShiwu(this.order.id);
				// }
			},
			// 按摩支付
			buyAnmo(order_id) {
				// fare：路费
				// step：支付步骤【0：非按摩商品，1：按摩商品支付定金，2：按摩商品支付尾款】
				this.$native.orderPay({
					order_id: order_id,
					pay_type: this.pay_type,
					type: 1
				});
			},

			// 实物支付
			buyShiwu(order_id) {
				// fare：路费
				// step：支付步骤【0：非按摩商品，1：按摩商品支付定金，2：按摩商品支付尾款】
				this.$native.orderPay({
					order_id: order_id,
					pay_type: this.pay_type,
					type: 1
				});
			},

			paySuccess() {
				this.flag = true;
				this.to_pay_show = false;
				this.pay_show = false;
				this.$util.msg('支付成功');
				this.getPayStatus();
			},

			payFail() {
				this.to_pay_show = false;
				this.$util.msg('用户取消支付');
				this.flag = true;
			},

			// 取消订单
			closeOrder() {
				uni.showModal({
					title: '提示',
					content: '是否取消订单',
					success: model => {
						if (model.confirm) {
							this.$get('/order/closeOrder', {
								order_id: this.order.id,
							}).then(res => {
								this.$util.back();
							})
						}
					}
				})
			},

			// 点击退款
			onReturn() {
				// if (this.order.kefu == 1) {
				// 	this.return_msg = '技师已接单正在赶去的路上，请耐心等待';
				// } else {
				this.return_msg = '是否确认退款';
				// }

				this.return_show = true;
			},

			// 退款
			returnOrder() {
				this.$get('/order/returnOrder', {
					order_id: this.order.id,
				}).then(res => {
					this.return_show = false;
					this.getDetail();
					this.$util.msg(res.msg);
				});
			},

			// 投诉
			toComplate() {
				this.$native.toComplate(this.order.id);
			},

			buyAgain() {
				this.$util.toUrl(
					`/pages/create/create?goods_id=${this.order.goods_id}&provider_id=${this.order.provider_id}&store_id=${this.order.store_id}&popularize_id=${0}&kefu=${this.order.kefu}&circle_id=${this.order.circle_id}`
				);
			},

			// 支付尾款 或 结束订单
			complateOrder(item) {
				// if (this.order.kefu == 1) {
				// 	// this.pay_show = true;
				// 	uni.showModal({
				// 		title: '提示',
				// 		content: '请确保技师完成服务后进行收货',
				// 		success: model => {
				// 			if (model.confirm) {
				// 				this.$get('/order/finishOrder', {
				// 					order_id: this.order.id
				// 				}).then(res => {
				// 					this.getDetail();
				// 				});
				// 			}
				// 		}
				// 	});
				// } else {
				uni.showModal({
					title: '提示',
					content: '请确保收到商品后进行收货',
					success: model => {
						if (model.confirm) {
							this.$get('/order/finishOrder', {
								order_id: this.order.id
							}).then(res => {
								this.getDetail();
							});
						}
					}
				});
				// }
			},

			toPayComplateOrder() {
				// fare：路费
				// step：支付步骤【0：非按摩商品，1：按摩商品支付定金，2：按摩商品支付尾款】
				this.$native.orderPay({
					order_id: this.order.id,
					pay_type: this.pay_type,
					type: 1
				});
			},

			// 运费输入框
			inputVerGame(e) {
				var exp = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;
				if (!exp.test(e.detail.value)) {

					this.$nextTick(() => {
						let value = e.detail.value;
						// 移除非数字和点
						value = value.replace(/[^\d.]/g, '');
						// 限制只能有一个小数点
						value = value.replace(/^\./g, '');
						value = value.replace(/\.{2,}/g, '.');
						// 限制只能输入两位小数
						value = value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.');
						value = value.replace(/^(\-)*(\d+)\.(\d{2}).*$/, '$1$2.$3');
						// 更新输入框的值
						this.fare = value;
					});

					return this.$util.msg('请输入正确的金额');
				}
			},

			getPayStatus() {
				this.$post('/pay/get_pay_status', {
					order_id: this.order.id,
					// type 4 推广
					type: 1,
				}, false, () => {
					this.getDetail();
				}).then(res => {
					this.getDetail();
				});
			},

			getPayStatusAgain() {
				this.$post('/pay/get_pay_status', {
					order_id: this.order.id,
					// type 4 推广
					type: 1,
				}, false);
			},

			onCopy(str) {
				if (!str) {
					return;
				}
				uni.setClipboardData({
					data: `${str}`,
					showToast: false,
					success: () => {
						this.$util.msg('已复制到剪贴板');
					}
				});
			},

		},

		onLoad(option) {
			if (option.id) {
				this.order_id = option.id;
				this.getDetail()
			}
			window.paySuccess = this.paySuccess;
			window.payFail = this.payFail;
			window.getPayStatusAgain = this.getPayStatusAgain;
		}
	}
</script>

<style lang="less" scoped>
	.ordercontent {
		padding: 32rpx 32rpx 168rpx;
		min-height: 100vh;
		background: #FFFFFF;
	}

	// 商品
	.product {
		margin-top: 32rpx;

		image {
			width: 128rpx;
			height: 128rpx;
			border-radius: 16rpx;
			color: #ECECF4;
			margin-right: 20rpx;
		}

		.name {
			flex: 1;

			text {
				font-weight: 500;
				font-size: 32rpx;
				color: #131313;
			}

			view {
				i {
					font-size: 24rpx;
					font-style: normal;
				}

				font-weight: 600;
				font-size: 32rpx;
				color: #131313;
			}
		}

	}

	// 商品详情标签
	.line {
		height: 2rpx;
		background: #EEEEEE;
		margin-top: 32rpx;
	}

	.order_content_text {
		margin-top: 32rpx;

		text {
			font-size: 28rpx;
			color: #131313;
			width: 240rpx;
		}

		.price {
			font-weight: 600;
			font-size: 40rpx;
			color: #FD2A53;

			i {
				font-style: normal;
				font-size: 28rpx;
			}
		}

		.kefu {
			font-size: 28rpx;
			color: #999999;
		}

		view {
			flex: 1;
			text-align: right;
			font-size: 28rpx;
			color: #999999;

			text {
				font-size: 28rpx;
				color: #999999;
			}
		}
	}

	.tracking_number {
		display: flex;
		flex-direction: row-reverse;
		align-items: center;

		view {
			flex: 0;
		}
	}

	.complant {
		background: #F8F8F8;
		border-radius: 24rpx;
		padding: 32rpx 24rpx;
		margin-top: 30rpx;

		.complant_title {
			font-weight: 500;
			font-size: 30rpx;
			color: #131313;
		}

		.complant_content {
			font-size: 26rpx;
			color: #333333;
			margin: 16rpx 0 24rpx;
			word-wrap: break-word;
		}

		image {
			width: 160rpx;
			height: 160rpx;
			border-radius: 16rpx;
			color: #ECECF4;
		}

		.complant_return {
			font-size: 26rpx;
			color: #666666;
		}
	}

	.btn_box {
		padding: 0 32rpx 32rpx;
		position: fixed;
		bottom: 0;
		right: 0;
		width: 100vw;
		height: 132rpx;
		background: #FFFFFF;
		box-shadow: 0rpx -2rpx 0rpx 0rpx rgba(230, 230, 230, 0.5);
		flex-direction: row-reverse;

		.btn {
			width: 200rpx;
			height: 80rpx;
			border-radius: 40rpx;
			font-size: 28rpx;
			line-height: 80rpx;
			text-align: center;
			margin-left: 24rpx;
		}

		.r {
			background: #FD2A53;
			border: 2rpx solid #FD2A53;
			color: #FFFFFF;
		}

		.b {
			background: #FFF;
			border: 2rpx solid #666;
			color: #333;
		}

		.text {
			font-weight: 500;
			font-size: 28rpx;
			color: #131313;

			text {
				font-weight: 600;
				font-size: 36rpx;
				color: #FD2A53;
				line-height: 32rpx;

				i {
					font-size: 28rpx;
					font-style: normal;
				}
			}


		}
	}

	.to_pay_show {
		padding: 32rpx 32rpx 64rpx;
		background: #FFFFFF;
		border-radius: 40rpx 40rpx 0rpx 0rpx;

		.title {
			font-weight: 500;
			font-size: 32rpx;
			color: #131313;
			line-height: 44rpx;
		}

		.price {
			margin: 34rpx 0 24rpx;

			i {
				font-weight: 500;
				font-size: 36rpx;
				color: #131313;
				line-height: 50rpx;
				font-style: normal;
			}

			text {
				font-weight: 500;
				font-size: 64rpx;
				color: #131313;
				line-height: 50rpx;
			}
		}

		.pay_type {
			background: #F8F8F8;
			border-radius: 16rpx;
			width: 100%;
			margin: 0 32rpx 64rpx;

			.item {
				height: 100rpx;
				padding: 0 32rpx;

				.left {
					image {
						width: 48rpx;
						height: 48rpx;
						margin-right: 16rpx;
					}

					text {
						font-size: 28rpx;
						color: #131313;
						line-height: 32rpx;
					}
				}

				.right {
					image {
						width: 40rpx;
						height: 40rpx;
					}

					text {
						font-size: 28rpx;
						color: #131313;
						line-height: 32rpx;
						margin-right: 30rpx;
					}
				}
			}
		}

		.btn {
			width: 560rpx;
			height: 96rpx;
			background: #FD2A53;
			border-radius: 50rpx;
			font-weight: 500;
			font-size: 32rpx;
			color: #FFFFFF;
			line-height: 96rpx;
			text-align: center;
		}

	}

	.return_popup {
		.icon {
			position: relative;
			z-index: 2;

			image {
				width: 112rpx;
				height: 112rpx;
			}
		}

		.content {
			width: 616rpx;
			background: #FFFFFF;
			border-radius: 40rpx;
			margin-top: -48rpx;
			padding: 88rpx 44rpx 48rpx;

			.title {
				font-weight: 500;
				font-size: 36rpx;
				color: #131313;
				line-height: 50rpx;
			}

			.text {
				width: 528rpx;
				font-size: 28rpx;
				color: #666666;
				line-height: 40rpx;
				text-align: center;
				margin: 24rpx 0 48rpx;
			}

			.return_popup_btn {
				width: 100%;

				view {
					width: 248rpx;
					height: 88rpx;
					border-radius: 44rpx;
					font-size: 28rpx;
					line-height: 88rpx;
					text-align: center;
				}

				.b {
					background: #F1F1F1;
					color: #333333;
				}

				.r {
					background: #FD2A53;
					color: #FFFFFF;
				}

			}
		}


	}

	.pay_popup {
		.icon {
			position: relative;
			z-index: 2;

			image {
				width: 112rpx;
				height: 112rpx;
			}
		}

		.content {
			width: 616rpx;
			background: #FFFFFF;
			border-radius: 40rpx;
			margin-top: -48rpx;
			padding: 88rpx 56rpx 48rpx;
			position: relative;

			.header {
				position: absolute;
				top: 16rpx;
				right: 16rpx;
				z-index: 3;
			}

			.title {
				font-weight: 500;
				font-size: 36rpx;
				color: #131313;
				line-height: 50rpx;
			}

			.price {
				width: 100%;
				margin: 32rpx 0;

				.item {
					text {
						font-size: 26rpx;
						color: #666666;
						line-height: 36rpx;
						margin-bottom: 8rpx;
					}

					view {
						font-weight: 500;
						font-size: 32rpx;
						color: #131313;
						line-height: 44rpx;
					}

					input {
						width: 176rpx;
						height: 64rpx;
						background: #F1F1F1;
						border-radius: 16rpx;
						font-size: 28rpx;
						color: #333;
						line-height: 64rpx;
						text-align: center;
					}
				}
			}

			.pay_popup_btn {
				width: 480rpx;
				height: 96rpx;
				background: #FD2A53;
				border-radius: 56rpx;
				padding-top: 12rpx;

				text {
					font-weight: 500;
					font-size: 28rpx;
					color: #FFFFFF;
					line-height: 40rpx;
				}

				view {
					font-size: 24rpx;
					color: #FFFFFF;
					line-height: 34rpx;
				}
			}
		}


	}
</style>